package com.woniuxy.daos;

import com.woniuxy.entitys.Client;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClientDao {
    int deleteByPrimaryKey(Integer cli_id);

    int insert(Client record);

    int insertSelective(Client record);

    Client selectByPrimaryKey(Integer cli_id);

    int updateByPrimaryKeySelective(Client record);

    int updateByPrimaryKey(Client client);

    //获取所有联系人集合
    public List<Client> selAll();

    public List<Client> selAllByComId(String com_id);

    public Integer updCliStatus(@Param("id") String cli_id, @Param("status") String cli_status);

    //根据名字和公司id模糊查询
    List<Client> searchById(@Param("name") String name, @Param("com_id") String com_id);

    Integer addClient(Client client);
}